package com.paas.form.entity;

import com.paas.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("form_task_log")
@ApiModel(value="FormTaskLog对象", description="")
public class FormTaskLogEntity extends BaseModel {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "主键")
	@TableId
	private String id;

	@ApiModelProperty(value = "调度实例id")
	@TableField("job_id")
	private String jobId;

	@ApiModelProperty(value = "任务id")
	@TableField("task_id")
	private String taskId;

	@ApiModelProperty(value = "执行参数")
	@TableField("params")
	private String params;

	@ApiModelProperty(value = "接入数据总数")
	@TableField("records")
	private Integer records;

	@ApiModelProperty(value = "接入失败数")
	@TableField("failed_records")
	private Integer failedRecords;

	@ApiModelProperty(value = "开始时间")
	@TableField("start_time")
	private Date startTime;

	@ApiModelProperty(value = "结束时间")
	@TableField("end_time")
	private Date endTime;

	@ApiModelProperty(value = "")
	@TableField("total_time")
	private String totalTime;

	@ApiModelProperty(value = "异常信息")
	@TableField("error")
	private String error;

	@ApiModelProperty(value = "运行状态")
	@TableField("status")
	private String status;

	@ApiModelProperty(value = "库表配置数")
	@TableField("tab_conf_num")
	private Integer tabConfNum;

	@ApiModelProperty(value = "接口配置数")
	@TableField("api_conf_num")
	private Integer apiConfNum;

	@ApiModelProperty(value = "组织id")
	@TableField("org_id")
	private String orgId;

	@ApiModelProperty(value = "应用id")
	@TableField("app_id")
	private String appId;

	@ApiModelProperty(value = "库表下发总数")
	@TableField(exist = false)
	private Integer tableTotalNumIssued;

	@ApiModelProperty(value = "接口下发总数")
	@TableField(exist = false)
	private Integer apiTotalNumIssued;

	@TableField(exist = false)
	private List<String> jobIds;

}